package slxy.jiangtao.dts.core.common.hibernate.qbc;

import org.hibernate.type.Type;

import java.util.List;
import java.util.Map;

public class HqlQuery {
  private int curPage = 1;
  private int pageSize = 10;
  private String myaction;
  private String myform;
  private String queryString;
  private Object[] param;
  private Type[] types;
  private Map<String, Object> map;
  private String field = ""; //查询需要显示的字段
  private Class class1;
  private List results; // 结果集
  private int total;

  public List getResults() {
    return results;
  }

  public void setResults(List rsults) {
    this.results = results;
  }

  public int getTotal() {
    return total;
  }

  public void setTotal(int total) {
    this.total = total;
  }

  public Class getClass1() {
    return class1;
  }

  public void setClass1(Class class1) {
    this.class1 = class1;
  }

  public String getField() {
    return field;
  }

  public void setField(String field) {
    this.field = field;
  }

  public Map<String, Object> getMap() {
    return map;
  }

  public void setMap(Map<String, Object> map) {
    this.map = map;
  }

  public HqlQuery(String queryString, Object[] param, Map<String, Object> map) {
    this.queryString = queryString;
    this.param = param;
    this.map = map;
  }

  public HqlQuery(String queryString, Map<String, Object> map) {
    this.queryString = queryString;
    this.map = map;
  }

  public HqlQuery(String myaction) {
    this.myaction = myaction;
  }

  public Object[] getParam() {
    return param;
  }

  public HqlQuery(String myaction, String queryString, Object[] param, Type[] types) {
    this.myaction = myaction;
    this.queryString = queryString;
    this.param = param;
    this.types = types;
  }

  public void setParam(Object[] param) {
    this.param = param;
  }

  public int getCurPage() {
    return curPage;
  }

  public void setCurPage(int curPage) {
    this.curPage = curPage;
  }

  public String getMyaction() {
    return myaction;
  }

  public void setMyaction(String myaction) {
    this.myaction = myaction;
  }

  public String getMyform() {
    return myform;
  }

  public void setMyform(String myform) {
    this.myform = myform;
  }

  public int getPageSize() {
    return pageSize;
  }

  public void setPageSize(int pageSize) {
    this.pageSize = pageSize;
  }

  public String getQueryString() {
    return queryString;
  }

  public void setQueryString(String queryString) {
    this.queryString = queryString;
  }

  public Type[] getTypes() {
    return types;
  }

  public void setTypes(Type[] types) {
    this.types = types;
  }
}
